﻿using HotelManagementClient.View.ViewModel;
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace HotelManagementClient
{
    /// <summary>
    /// SettingWindow.xaml 的交互逻辑
    /// </summary>
    public partial class SettingWindow : Window
    {
        public SettingWindow()
        {
            InitializeComponent();


            var menuRegister = new List<SubItem>();
            menuRegister.Add(new SubItem("PMS品牌"));
            menuRegister.Add(new SubItem("账号管理"));
            var item6 = new ItemMenu("PMS设置", menuRegister, PackIconKind.Register);

            var menuSchedule = new List<SubItem>();
            menuSchedule.Add(new SubItem("自助机"));
            menuSchedule.Add(new SubItem("发卡器"));
            menuSchedule.Add(new SubItem("卡片"));
            menuSchedule.Add(new SubItem("收银设备"));
            menuSchedule.Add(new SubItem("WIFI"));
            var item1 = new ItemMenu("设备与网络", menuSchedule, PackIconKind.Schedule);

            var menuReports = new List<SubItem>();
            menuReports.Add(new SubItem("基础信息"));
            menuReports.Add(new SubItem("其他"));
            menuReports.Add(new SubItem("客房信息"));
            var item2 = new ItemMenu("酒店信息设置", menuReports, PackIconKind.FileReport);

            var item0 = new ItemMenu("主页", new UserControl(), PackIconKind.ViewDashboard);

            Menu.Children.Add(new UserControlMenuItem(item0));
            Menu.Children.Add(new UserControlMenuItem(item6));
            Menu.Children.Add(new UserControlMenuItem(item1));
            Menu.Children.Add(new UserControlMenuItem(item2));
        }
    }
}
